package com.hzeport.bgs22emduty.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.*;

@Data
@ApiModel("值班提醒-新增")
public class ScreenDutyNoticeListSaveDTO extends BaseEntity {

    @ApiModelProperty(value="标题")
    private String title;

    @ApiModelProperty(value="发起人")
    private String createPerson;

    @ApiModelProperty(value="提醒类型：0黄灯，1红灯,2绿灯")
    private String noticeType;

    @ApiModelProperty(value="状态")
    private String status;

    @ApiModelProperty(value="正文")
    private String mainBody;

    @ApiModelProperty(value="开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value="结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value="是否发送短信:0发送，1不发送")
    private String isMsg;

    @ApiModelProperty(value="发送短信人员")
    private List<SmsPersonDTO> smsSendPerson;


    /**
     * $column.comments
     */
    @ApiModelProperty(value="关区GUID，源自H4A")
    @TableField(value ="CUSTOM_ID")
    @JsonProperty(value = "customId")
    private List<String> customId;

//    /**
//     * $column.comments
//     */
//    @ApiModelProperty(value="$column.comments")
//    @TableField(value ="CUSTOM_NAME")
//    @JsonProperty(value = "customName")
//    private String customName;

    @Override
    public String toString() {
        return "ScreenDutyNoticeListSaveDTO{" +
                "title='" + title + '\'' +
                ", createPerson='" + createPerson + '\'' +
                ", noticeType='" + noticeType + '\'' +
                ", status='" + status + '\'' +
                ", mainBody='" + mainBody + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", isMsg='" + isMsg + '\'' +
                ", smsSendPerson=" + smsSendPerson +
                '}';
    }
}
